<script type="text/javascript" src="js/jquery/jquery.js"></script>
<script type="text/javascript" src="js/jquery.datePicker.js"></script>
<script type="text/javascript" src="js/date.js"></script>

<link rel="stylesheet" type="text/css" href="css/datepicker.css" />

{literal}
	<script type="text/javascript">
	    $(function(){
			$('.date-pick1').datePicker();
	    });
	    function submitear(){
			document.formNoticiasSearch.submit();
		}
	     function cambiarEntradas(){
		 	$("#formNoticiasSearch").submit();
		 }
	</script>
{/literal}

<form id="formNoticiasSearch" name="formNoticiasSearch" method="GET" action="noticias.php">
	<input type="hidden" id="orderby" name="orderby">
	<input type="hidden" id="order" name="order" value="{$order}">
	<div class="searchbox">
	<br>
		
		<table  cellpadding="3" width="100%">
			<tr>
				<td width="290px">
				<div style="border-bottom:1px solid silver;font-weight:bold;color:#444">FILTRO:</div><br>
					<div style="float:left; width:60px;font-weight:bold">T&iacute;tulo: </div>
					<input type="text" name="titulo" id="titulo" value="{$titulo}" size="29"/>
				</td>
			</tr>
			<tr>
				<td  width="250px" >
					<div style="float:left; width:60px;;font-weight:bold">Rango: </div>
					<input type="text" id="desde"  name="desde" value="{$fechaFrom|date_format:'%d-%m-%Y'}" class="date-pick1" />
					<input type="text" id="hasta" name="hasta" value="{$fechaTo|date_format:'%d-%m-%Y'}" class="date-pick" /> 
				</td>
			</tr>
			<tr>
				<td width="200px">
					<input type="submit"  value="Buscar" />
					<input type="button" value="Limpiar" onclick="goToPage('noticias.php');" />
				</td>
				<td align="right">Mostrar 
					<select name="entradas" onchange="cambiarEntradas()">
						<option value="10" {if $totalItemsPerPage == 10}selected{/if}>10</option>
						<option value="15" {if $totalItemsPerPage == 15}selected{/if}>15</option>
						<option value="20" {if $totalItemsPerPage == 20}selected{/if}>20</option>
						<option value="30" {if $totalItemsPerPage == 30}selected{/if}>30</option>
						<option value="50" {if $totalItemsPerPage == 50}selected{/if}>50</option>
					</select>  &nbsp;
				</td>
			</tr>
		</table>
	</div>
</form>
